<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
<yangchen v-for="item in items" v-bind:item="item"></yangchen>

</div>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>

    Vue.component("yangchen",{
        props:['item'],
        template:'<li>{{item}}</li>'
    });

    var vm = new Vue({
        el: '#app',
        data:{
            items:["Java","Linux","前端"]
        }
    })

</script>
</body>
</html>